ActionByte
The packed action-request byte (byte 0 of the command block).
Members
| Typedefs | |
| using | ActionRequest = detail::NamedBitArray< ActionRequestBit > |
|
The packed action-request byte (byte 0 of the command block), as a set of ActionRequestBit flags. More... | |
| Enumerations | |
| enum class | ActionRequestBit : uint8_t { ... } |
|
Bit layout of the action-request byte (byte 0 of the command block): More... | |
Typedefs
ActionRequest
|
The packed action-request byte (byte 0 of the command block), as a set of ActionRequestBit flags.
Individual bits are read and written through a generic set()/get() pair: set(bit) / set(bit, value) to write, unset(bit) to clear, and get(bit) to read one back.
- Example
-
Robotiq::GripperCommand command = Robotiq::GripperCommand::defaults();command.action.set(Robotiq::ActionRequestBit::GoTo); // start moving (same as set(GoTo, true))command.action.set(Robotiq::ActionRequestBit::AutoRelease, false); // ...but not an emergency release
Enumerations
ActionRequestBit
| strong |
Bit layout of the action-request byte (byte 0 of the command block):
- Enumeration values
//! bit 7 6 5 4 3 2 1 0
//! rsvd rsvd rARD rATR rGTO rsvd rsvd rACT
//!
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.